<script setup lang="ts">
defineProps<{
  cover: string
}>()
</script>

<template>
  <div class="cover-section">
    <div class="cover-wrapper">
      <img :src="cover" alt="封面">
    </div>
  </div>
</template>

<style scoped lang="scss">
.cover-section {
  width: 320px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--bgc-color-1) 20%, transparent);
  
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
</style> 